package com.dfbz.demo10_多继承的问题;

/**
 * @author lscl
 * @version 1.0
 * @intro:
 */
public class Demo01 {

    public static void main(String[] args) {
        C c =new C();

        c.printAFunction();
    }

}
class A{
    public void method(){
        System.out.println("a");
    }
}

class B extends A{
    public void method(){
        System.out.println("b");
    }

    public void printAFunction(){
        super.method();
    }
}

class C extends B{
    public void method(){
        System.out.println("c");
    }


}